/*
 * @(#)debug.java	Robert Denda
 */

/** 
 *
 * @author 	Robert Denda
 * @version     1.0, 20.06.97
 */

import java.lang.*;
import java.io.*;

public final class debug {
  boolean on = true;
  synchronized public void out( String s, Object o ) {
    if ( on ) {
	System.err.println( (String) Thread.currentThread().getName() +(":(" + o.toString() + ")" + ": " + s ) );
    } // if
  } // debug.print

  synchronized public void switchOn() {
    on = true;
  } // debug.switchOn

  public void switchOff() {
    on = false;
  } // debug.switchOff

} // debug
